<template>
  <div class="start" >
    <van-swipe class="my-swipe"
      v-if="isShow"
      indicator-color="white"
      style="height: 100vh;"
      >
      <van-swipe-item>
        <img src="~assets/img/11.png" alt="">
      </van-swipe-item>
      <van-swipe-item>
        <img src="~assets/img/11.png" alt="">
      </van-swipe-item>
      <van-swipe-item>
        <img src="~assets/img/11.png" alt="">
        <div class="btn" @click="btnClick()" >
          开启美食之旅吧！
        </div>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: 'start',
  data () {
    return {
      isShow: true
    }
  },
  methods: {
    btnClick() {
      this.isShow = false
    }
  }
}
</script>

<style scoped lang="scss">
.start {
  width: 100%;
  z-index: 999;
  position: relative;
  img {
    width: 100%;
    height: 100%;
  }
  .btn {
    width: 10rem;
    height: 3rem;
    line-height: 3rem;
    font-size: 1rem;
    border: 2px solid #fff;
    border-radius: 1rem;
    text-align: center;
    color: #fff;
    position: absolute;
    bottom: 10rem;
    left: 30%;
  }
}
</style>
